package com.hxci.zhangyong.dao;

import com.hxci.zhangyong.pojo.Teacher;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherDao {
    //@Select("select * from teacher")
    public List<Teacher> query();

   // @Insert("insert  into teacher (sno,name,banji,kecheng,jianjie) values(#{sno},#{name},#{banji},#{kecheng},#{jianjie})")
    int save( Teacher teacher);

    int del(Integer id);

    Teacher edit(Integer id);

    int update(Teacher teacher);
}
